package com.iwomy.envpro.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 设备校准记录表
 *
 * @author pig
 * @date 2024-01-19 10:59:17
 */
@Data
@TableName("basic_equipment_calibration_record")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "设备校准记录表")
public class BasicEquipmentCalibrationRecordEntity extends Model<BasicEquipmentCalibrationRecordEntity> {


	/**
	 * ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description="ID")
	private Long id;

	/**
	 * 设备编码
	 */
	@Schema(description="设备编码")
	private String equipmentCode;

	/**
	 * 检测因子code
	 */
	@Schema(description="检测因子code")
	private String factorCode;

	/**
	 * 检测因子名称
	 */
	@Schema(description="检测因子名称")
	private String factorName;

	/**
	 * 地址
	 */
	@Schema(description="地址")
	private String registerStartAddress;

	/**
	 * 数值
	 */
	@Schema(description="数值")
	private String calibratingValue;

	/**
	 * 配置类型
	 */
	@Schema(description="配置类型")
	private String configType;

	/**
	 * 所属部门ID
	 */
	@Schema(description="所属部门ID")
	private Long deptId;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建时间")
	private LocalDateTime createTime;

	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="修改人")
	private String updateBy;

	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="修改时间")
	private LocalDateTime updateTime;

	/**
	 * delFlag
	 */
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="delFlag")
	private String delFlag;

	/**
	 * 租户ID
	 */
	@Schema(description="租户ID")
	private Long tenantId;

}